import 'package:flutter/material.dart';
import 'package:module_home/model/ScoreEntity.dart';

class ScoreItem extends StatelessWidget {
  final ScoreEntity scoreModel;

  const ScoreItem({Key key, this.scoreModel}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: _operateWidget(scoreModel),
    );
  }
}

Widget _operateWidget(ScoreEntity scoreModel) {
  return Row(
    mainAxisAlignment: MainAxisAlignment.center,
    children: <Widget>[
      Image.asset(scoreModel.img, width: 12, height: 13),
      Padding(
        padding: EdgeInsets.only(left: 2),
        child: Text(
          scoreModel.score,
          style: TextStyle(fontSize: 13, color: Colors.black),
        ),
      )
    ],
  );
}
